package com.gopay.common.domain.cbrmb;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by win10 on 2017.08.25.
 */
@Entity
@Table(name="CB_RMB_BATCH_IMPORT_ASSIST")
public class CbRmbBatchImportAssist extends BaseEntity {
    private static final long serialVersionUID = 5878971475286060443L;

    private String gopayOrderId;
    private String batchProcessStatus;
    private String gopayIntTxnCd;
    private BigDecimal batchMerAmt;
    private BigDecimal batchTotalAmt;
    private String recvCustId;
    private BigDecimal batchCount;


    private Date createdTs;
    private Date lastUpdTs;
    private int version;

    private String remark1;
    private String remark2;


    @Id
    @Column(name = "GOPAY_ORDER_ID", unique = true, nullable = false, length = 30)
    public String getGopayOrderId() {
        return this.gopayOrderId;
    }

    public void setGopayOrderId(String gopayOrderId) {
        this.gopayOrderId = gopayOrderId;
    }


    @Column(name = "RECV_CUST_ID", length = 10)
    public String getRecvCustId() {
        return this.recvCustId;
    }

    public void setRecvCustId(String recvCustId) {
        this.recvCustId = recvCustId;
    }

    @Column(name = "GOPAY_INT_TXN_CD", unique = true, nullable = false, length = 6)
    public String getGopayIntTxnCd() {
        return this.gopayIntTxnCd;
    }

    public void setGopayIntTxnCd(String gopayIntTxnCd) {
        this.gopayIntTxnCd = gopayIntTxnCd;
    }

    @Column(name="BATCH_PROCESS_STATUS")
    public String getBatchProcessStatus() {
        return batchProcessStatus;
    }

    public void setBatchProcessStatus(String batchProcessStatus) {
        this.batchProcessStatus = batchProcessStatus;
    }

    @Column(name="BATCH_MER_AMT")
    public BigDecimal getBatchMerAmt() {
        return batchMerAmt;
    }

    public void setBatchMerAmt(BigDecimal batchMerAmt) {
        this.batchMerAmt = batchMerAmt;
    }
    @Column(name="BATCH_TOTAL_AMT")
    public BigDecimal getBatchTotalAmt() {
        return batchTotalAmt;
    }

    public void setBatchTotalAmt(BigDecimal batchTotalAmt) {
        this.batchTotalAmt = batchTotalAmt;
    }


    @Column(name="BATCH_COUNT")
    public BigDecimal getBatchCount() {
        return batchCount;
    }

    public void setBatchCount(BigDecimal batchCount) {
        this.batchCount = batchCount;
    }

    @Column(name = "CREATED_TS", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreatedTs() {
        return this.createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    @Column(name = "LAST_UPD_TS", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdTs() {
        return this.lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }



    @Version
    @Column(name = "VERSION", nullable = false, precision = 22, scale = 0)
    public int getVersion() {
        return this.version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    @Column(name = "REMARK1", length = 50)
    public String getRemark1() {
        return this.remark1;
    }

    public void setRemark1(String remark1) {
        this.remark1 = remark1;
    }

    @Column(name = "REMARK2", length = 50)
    public String getRemark2() {
        return this.remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }
}
